<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets">

    <ui:composition template="/templateSemMenu.xhtml">
        <ui:define name="bodyname">
            <h:outputText value="Sistema de Caronas"/>
        </ui:define>
        <ui:define name="body">
            <h:form id="login">              
                <div>
                    <h:outputLabel styleClass="label" value="#{msg.username}"
                                   for="login" />
                    <h:inputText styleClass="camposEntrada" id="login"
                                 value="#{ControladorUsuario.us.login}" required="false" />
                </div>
                <div>
                    <h:outputLabel styleClass="label" value="#{msg.senha}" for="senha" />
                    <h:inputSecret styleClass="camposEntrada" id="senha"
                                   value="#{ControladorUsuario.us.senha}" required="false" />
                    <h:commandButton value="#{msg.button1}"
                                     action="#{ControladorUsuario.logar}" styleClass="button" />
                </div>                  
                <div>    <h:commandLink action="cadastro" value="#{msg.cadastrese}"></h:commandLink>                       
                </div>
             

                <a href="recuperarConta.jsf">${msg.esqueceuSenha}</a>
                <p>
                    <h:messages styleClass="mensagemIformacao" />
                </p>
            </h:form>
        </ui:define>
    </ui:composition>
</html>

